package com.starnet.yarnmonitor.yarn.vo;

import lombok.Data;
import org.apache.hadoop.yarn.api.records.QueueState;

@Data
public class QueueVO {
    //队列名称
    private String queueName;
    //容量
    private double capacity;
    //当前容量
    private double currentCapacity;
    //最大容量（争抢过后的）
    private double maximumCapacity;
    //状态
    private String state;
    //已提交app数量
    private Long numAppsSubmitted;
    //正在运行的app数量
    private Long numAppsRunning;
    //待运行的app数量
    private Long numAppsPending;
    //已完成的app数量
    private Long numAppsCompleted;
    //杀死的app数量
    private Long numAppsKilled;
    //失败的app数量
    private Long numAppsFailed;
    //活跃的用户
    private Long numActiveUsers;
    //可获得内存
    private Long availableMemoryMB;
    //已分配的内存
    private Long allocatedMemoryMB;
    //待定的内存
    private Long pendingMemoryMB;
    //预留的内存
    private Long reservedMemoryMB;
    //可获得的核心
    private Long availableVCores;
    //已分配的核心
    private Long allocatedVCores;
    //待定的核心
    private Long pendingVCores;
    //预留的核心
    private Long reservedVCores;
    //已分配的容器
    private Long allocatedContainers;
    //待定的容器
    private Long pendingContainers;
    //预留的容器
    private Long reservedContainers;
    //是否禁止抢占
    private boolean preemptionDisabled;
    //内部是否禁止抢占
    private boolean intraQueuePreemptionDisabled;

}
